package com.crawler.gmail.utils;

/**
 * <描述>
 * <详细介绍>
 *
 * @author 王明明
 * @since wiki
 */
public class TimeStampUtil {
    public static Long LongTo13(Long time){
        String timeStr = String.valueOf(time);
        System.out.println(timeStr);
        if (timeStr.length() == 10){
            timeStr = timeStr + "000";
        }
        return Long.valueOf(timeStr.substring(0,13));

    }
    public static Long LongTo10(Long time){
        String timeStr = String.valueOf(time);
        System.out.println(timeStr);
        return Long.valueOf(timeStr.substring(0,10));
    }
}
